using StudentManagement.Domain.Entities;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace StudentManagement.Domain.Repositories
{
    public interface IPermissionRepository : IRepository<Permission>
    {
        Task<IEnumerable<Permission>> GetPermissionsByRoleIdAsync(int roleId);
        Task<Permission> GetPermissionByNameAsync(string name);
    }
}